/*
 Licensed to Cloudera, Inc. under one
 or more contributor license agreements.  See the NOTICE file
 distributed with this work for additional information
 regarding copyright ownership.  Cloudera, Inc. licenses this file
 to you under the Apache License, Version 2.0 (the
 "License"); you may not use this file except in compliance
 with the License.  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/

@import (reference) "cui/colors.less";
@import (reference) "cui/extra-variables.less";
@import (reference) "hue-mixins.less";

.notebook {
  .snippet-move-placeholder {
    margin: 10px;
    height: 100px;
    background-color: @cui-gray-050;
    border: 2px dotted @cui-default-border-color;
  }

  .snippet-move-helper {
    margin: 10px;
    background-color: @cui-white;
    border: 1px solid @cui-purple-gray-050;
  }

  .resizer {
    position: absolute;
    height: 100%;
    width: 4px;
    cursor: col-resize;
  }

  .resize-bar {
    position: absolute;
    height: 100%;
    width: 2px;
    background-color: @cui-default-border-color;
  }

  .question {
    margin: 10px;
  }

  .snippet {
    padding-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
  }

  .notebook-snippet {
    border-bottom: 1px solid @cui-default-border-color;
    border-radius: 0;
  }

  .snippet.editor-mode {
    border-bottom: none;
  }

  .snippet-left-bar {
    position:absolute;
    display:inline-block;
    height:auto;
    left:0;
    top:0;
    bottom:0;
    width: 35px;
  }

  .result-body {
    margin-left: 35px;
    margin-right: 20px;
  }

  .snippet-body {
    margin-left: 35px;
    margin-right: 20px;
    z-index: 90;
    min-height: 40px;
  }

  .snippet-text .snippet-body {
    min-height: 1px;
  }

  .snippet-text.card-widget {
    min-height: 1px;
  }

  .snippet-body h2 {
    padding-left: 0 !important;
  }

  .snippet-settings {
    background-color: @cui-white;
    border-left: 1px solid @cui-default-border-color;
    border-right: 1px solid @cui-default-border-color;
    border-bottom: 1px solid @cui-default-border-color;
    .hue-box-shadow-bottom;
  }

  .snippet-settings-header > h4 {
    margin: 0;
    padding: 10px;
  }

  .snippet-settings-body {
    padding: 10px;
  }

  .CodeMirror {
    height: auto;
  }

  .card .card-heading.simple {
    border: none;
  }

  .add-snippet {
    margin: 10px;
    margin-top: 60px;
    margin-bottom: 60px;
  }

  .add-snippet-button {
    z-index: 300;
    margin-left: auto;
    margin-right: auto;
    width: 220px;
    padding: 20px;
  }

  .add-snippet-button > i {
    color: @cui-gray-400;
    cursor: pointer;
  }

  .select-snippet-button {
    z-index: 500;
    position: absolute;
    top: 62px;
    left: 62px;
    width: 23px;
    height: 18px;
    line-height: 12px;
    background-color: @cui-gray-400;
    cursor: pointer;
    border: 2px solid @cui-white;
    color: @cui-white;
    border-radius: 7px;
  }

  .add-snippet-alt {
    z-index: 400;
    position: absolute;
    background-color: @hue-primary-color-dark;
    color: @cui-blue-gray-100;
    height: 54px;
    width: 54px;
    border-radius: 28px;
    border: 1px solid;
  }

  .add-snippet-alt > div {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    line-height: 14px;
    width: 50px;
    height: 54px;
    padding-left:2px;
    font-size: 11px;
  }

  .snippet-list-alts {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .snippet-list-alts > li {
    padding: 5px 0 5px 10px;
    cursor: pointer;
    color: @cui-gray-800;
    margin-bottom: 2px;
  }

  .snippet-list-alts > li:hover {
    padding: 5px 0 5px 10px;
    background-color: @cui-purple-gray-050;
  }

  .select-snippet-button,
  .add-snippet-button > i,
  .add-snippet-alt {
    -webkit-transition: color 0.3s ease, -webkit-transform 0.3s;
    -moz-transition: color 0.3s ease, -moz-transform 0.3s;
    -ms-transition: color 0.3s ease, -ms-transform 0.3s;
    transition: color 0.3s ease, transform 0.3s;
  }

  .add-snippet-alt:hover {
    color: @cui-white;
  }

  .select-snippet-button:hover,
  .add-snippet-button > i:hover,
  .add-snippet-alt:hover {
    -webkit-transform: scale(1.3, 1.3);
    -moz-transform: scale(1.3, 1.3);
    -ms-transform: scale(1.3, 1.3);
    transform: scale(1.3, 1.3);
  }

  .spark-btn {
    border-left: none;
    border-right: none;
    width: 14px;
    opacity: 0.8;
    border-radius: 0;
  }

  .spark-btn:hover {
    opacity: 1;
  }

  .codeMirror-overlaybtn {
    position: absolute;
    margin-top: -30px;
    margin-left: 0;
    z-index: 999;
  }


  .nav {
    margin-bottom: 0;
  }

  .nav i {
    line-height: 20px !important;
  }

  .nav-list > li > a, .nav-list .nav-header {
    padding-left: 0;
    margin-left: 0;
    margin-bottom: -7px;
    margin-top: 10px !important;
  }

  .result-settings {
    .nav-list .nav-header {
      margin-bottom: -3px;
      padding-left: 3px;
    }
    .checkbox {
      padding-top: 0;
    }
  }

  .nav-list {
    padding-left: 0;
  }

  .dropdown-menu li {
    font-size: 14px;
  }

  .dropdown a.dropdown-toggle {
    padding-left: 10px;
    padding-right: 10px;
  }

  .search-bar {
    background-color: @cui-gray-050;
    margin: 0;
    padding: 4px 20px 0;
    text-align: left;
    width: 100%;
    position: fixed;
    top: 28px;
    z-index: 1000;
  }

  .search-bar input {
    margin-left: 10px;
    padding-right: 20px;
  }

  .search-bar ul li {
    text-align: right;
  }

  .search-bar ul.dropdown-menu li {
    text-align: left;
  }

  .tab-content {
    background-color: @cui-white;
    border-left: 1px solid @cui-default-border-color;
    border-right: 1px solid @cui-default-border-color;
  }

  .editor-help {
    b {
      font-weight: 500;
    }
    .nav-list > li > a {
      padding: 8px 15px !important;
      margin-bottom: 2px;
      margin-top: 2px !important;
      margin-left: -15px;
    }
    .help-list-spacing li {
      margin-bottom: 15px;
    }
    .tab-content {
      border: none;
    }
    .tab-pane > .tab-content {
      padding: 20px 10px;
      line-height: 24px;
    }
  }

  .two-pane {
    .display-flex();

    .tab-content {
      .flex(1);
    }
  }

  .two-pane-left {
    .flex(0 0 150px);
    border-right: 1px solid @cui-gray-100;
    margin-right: 10px;
  }

  .empty-title {
    font-weight: normal;
  }

  .snippet-icon-image {
    height: 16px;
    width: 16px;
    -webkit-filter: grayscale(1);
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    -webkit-transition: -webkit-filter 0.2s ease;
    -moz-transition: filter 0.2s ease;
    -ms-transition: filter 0.2s ease;
  }

  .inactive-action:hover > .snippet-icon-image {
    -webkit-filter: grayscale(0);
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
  }

  .snippet-icon {
    color: @cui-gray-500;
    height: 16px;
    width: 16px;
    -webkit-transition: color 0.2s ease;
    -moz-transition: color 0.2s ease;
    -ms-transition: color 0.2s ease;
    transition: color 0.2s ease;
  }

  .inactive-action:hover > .snippet-icon {
    color: @hue-primary-color-dark !important;
  }

  .row-container.is-editing {
    border: none;
  }

  .ui-sortable {
    background-color: @cui-white;
    min-height: 0;
  }

  .editable-click, a.editable-click, a.editable-click:hover {
    cursor: pointer !important;
  }

  .editable-click.editable-disabled, a.editable-click.editable-disabled, a.editable-click.editable-disabled:hover {
    cursor: default !important;
  }

  .results table tr td {
    white-space: nowrap;
  }

  [contenteditable]:focus {
    outline: none;
  }

  .snippet-progress-container {
    height: 3px;
    overflow: hidden;
    margin-bottom: 2px;
  }

  .snippet-logs-btn {
    margin-top: -9px;
    margin-left: -3px;
    font-size: 20px;
  }

  .snippet-execution-status {
    margin-top: 10px;
    margin-left: 35px;
    margin-right: 20px;
    margin-bottom: 4px;
  }

  .ace-container-resizable {
    position: relative;
    min-height: 128px !important;
  }

  .ace-editor-resizable {
    position: absolute;
    top: 0;
    left:0;
    bottom:0;
    right: 0;
    overflow: hidden !important;
  }

  .snippet-code-resizer, .snippet-log-resizer {
    border-top: 1px solid @cui-default-border-color;
    cursor: row-resize;
    text-align: center;
    font-size: 12px;
    height: 8px;
    margin-bottom: 5px;
    color: @cui-gray-200;
  }

  .snippet-code-resizer {
    margin-left: 35px;
    margin-right: 20px;
  }

  .snippet-code-resizer > i, .snippet-log-resizer > i {
    -ms-transform: scale(1.3,1); /* IE 9 */
    -webkit-transform: scale(1.3,1); /* Safari */
    transform: scale(1.3,1);
  }

  .snippet-log-expander {
    position: absolute;
    text-align: center;
    cursor: pointer;
    bottom: 4px;
    width: 100%;
  }

  .snippet-log-expander:hover {
    background-color: @cui-white;
    opacity:.5;
  }

  .snippet-log-container, .query-history-container {
    margin-left: 35px;
    margin-right: 20px;
  }

  .snippet-footer-actions-bar {
    padding: 0 3px;
    height: 29px;
  }

  .text-snippet h2 {
    padding-left: 0 !important;
  }

  .span12.nomargin {
    margin-left: 0;
  }

  .show-assist,
  .show-assist-right {
    position: fixed;
    top: 80px;
    background-color: @cui-white;
    width: 16px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    -webkit-border-top-right-radius: 3px;
    -webkit-border-bottom-right-radius: 3px;
    -moz-border-radius-topright: 3px;
    -moz-border-radius-bottomright: 3px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    z-index: 1000;
  }

  .show-assist {
    left: 8px;
    margin-left: -2px;
    -webkit-transition: margin-left 0.2s linear;
    -moz-transition: margin-left 0.2s linear;
    -ms-transition: margin-left 0.2s linear;
    transition: margin-left 0.2s linear;
  }

  .show-assist-right {
    right: 8px;
    margin-right: -2px;
    -webkit-transition: margin-right 0.2s linear;
    -moz-transition: margin-right 0.2s linear;
    -ms-transition: margin-right 0.2s linear;
    transition: margin-right 0.2s linear;
  }

  .show-assist:hover {
    margin-left: 0;
  }

  .show-assist-right:hover {
    margin-right: 0;
  }

  .hide-assist,
  .hide-assist-right {
    position: absolute;
    top: 2px;
    z-index: 1000;
    color: @cui-gray-500;
    font-size: 12px;
  }

  .hide-assist {
    right: 4px;
    -webkit-transition: margin-right 0.2s linear, color 0.5s ease;
    -moz-transition: margin-right 0.2s linear, color 0.5s ease;
    -ms-transition: margin-right 0.2s linear, color 0.5s ease;
    transition: margin-right 0.2s linear, color 0.5s ease;
  }

  .hide-assist-right {
    left: 4px;
    -webkit-transition: margin-left 0.2s linear, color 0.5s ease;
    -moz-transition: margin-left 0.2s linear, color 0.5s ease;
    -ms-transition: margin-left 0.2s linear, color 0.5s ease;
    transition: margin-left 0.2s linear, color 0.5s ease;
  }

  .hide-assist:hover {
    margin-right: 2px;
    color: @hue-primary-color-dark;
  }

  .hide-assist-right:hover {
    margin-left: 2px;
    color: @hue-primary-color-dark;
  }


  .logs {
    padding: 9.5px;
    font-size: 11px;
    height: 80px;
    overflow-y: auto;
    margin-bottom: 0;
  }

  h1.empty {
    margin-top: 50px;
    text-align: center;
    color: @cui-gray-300;
  }

  .toggle-result-settings {
    float: left;
    padding: 3px;
    margin-top: 31px;
    width: 10px;
    text-align: center;
    cursor: pointer;
  }

  .toggle-result-settings .close {
    margin-right: 2px;
  }

  .toggle-result-settings .open {
    margin-left: 2px;
  }

  .chart-icon {
    width: 15px;
    text-align: center;
  }

  .resize-panel a {
    cursor: ns-resize;
    color: @cui-gray-700;
    position: absolute;
  }

  .progress-snippet {
    background-image: none;
    box-shadow: none;
  }

  .progress-snippet .bar {
    background-image: none;
  }

  .progress .bar {
    background-repeat: repeat-x;
  }

  .progress, .progress-neutral .bar {
    background-color: @cui-gray-300;
  }

  .progress .bar {
    background-color: @cui-white;
  }

  .progress .bar-info {
    background-color: @hue-primary-color-dark;
  }

  .progress-starting .bar {
    background-color: @hue-primary-color-dark;
  }

  @-webkit-keyframes pulsate {
    0% {
      margin-left: 0;
    }
    50% {
      margin-left: 30px;
    }
    100% {
      margin-left: 0;
    }
  }

  @-moz-keyframes pulsate {
    0% {
      margin-left: 0;
    }
    50% {
      margin-left: 30px;
    }
    100% {
      margin-left: 0;
    }
  }

  @-o-keyframes pulsate {
    0% {
      margin-left: 0;
    }
    50% {
      margin-left: 30px;
    }
    100% {
      margin-left: 0;
    }
  }

  @keyframes pulsate {
    0% {
      margin-left: 0;
    }
    50% {
      margin-left: 30px;
    }
    100% {
      margin-left: 0;
    }
  }

  .progress-starting {
    -webkit-animation: pulsate 1s infinite;
    -moz-animation: pulsate 1s infinite;
    -o-animation: pulsate 1s infinite;
    animation: pulsate 1s infinite;
  }

  .progress-success .bar, .progress .bar-success {
    background-color: @cui-green-400;
  }

  .progress-warning .bar, .progress .bar-warning {
    background-color: @cui-orange-200;
  }

  .progress-danger .bar, .progress .bar-danger {
    background-color: @cui-red-400;
  }

  .text-snippet {
    padding-left: 4px;
  }

  .medium-editor-toolbar-form label {
    min-height: 20px;
  }

  .medium-editor-toolbar-form input[type="checkbox"] {
    float: left;
    margin-left: 0;
    margin-right: 4px;
  }

  .medium-editor-toolbar li button {
    padding: 0 !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  .medium-toolbar-arrow-under:after {
    top: 40px !important;
  }

  .medium-editor-placeholder:after {
    padding-left: 5px;
    font-size: 13px !important;
    font-family: @font-family-monospace !important;
    color: @cui-gray-500 !important;
    font-style: normal !important;
  }

  .card-heading-print {
    display: none;
  }

  .no-underline:hover {
    text-decoration: none !important;
  }

  input[type="text"].filechooser-input {
    border-right: none;
    margin-bottom: 0;
  }

  table.airy tr td {
    padding: 4px;
  }

  .ace-filechooser {
    position: absolute;
    display: none;
    z-index: 20000;
    background-color: @cui-white;
    padding: 10px;
    min-width: 350px;
  }

  .hover-dropdown {
    display: inline-block;
    position: relative;
  }

  .results.alert-error, .alert-error-gradient {
    border: none;
    margin-top: -3px;
    background: -moz-linear-gradient(left, rgba(242, 222, 222, 1) 0, rgba(255, 255, 255, 0) 100%);
    background: -webkit-linear-gradient(left, rgba(242, 222, 222, 1) 0, rgba(255, 255, 255, 0) 100%);
    background: -o-linear-gradient(left, rgba(242, 222, 222, 1) 0, rgba(255, 255, 255, 0) 100%);
    background: -ms-linear-gradient(left, rgba(242, 222, 222, 1) 0, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(to right, rgba(242, 222, 222, 1) 0, rgba(255, 255, 255, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='@cui-pink-050', endColorstr='#00ffffff', GradientType=1)
  }


  .results-images {
    border-left: 5px solid @cui-default-border-color;
    background-color: @cui-gray-050;
    padding: 5px;
  }

  .alert-notebook, .alert-gradient {
    border: none;
    margin-top: -3px;
    background: -moz-linear-gradient(left, rgba(252, 248, 227, 1) 0, rgba(255, 255, 255, 0) 100%);
    background: -webkit-linear-gradient(left, rgba(252, 248, 227, 1) 0, rgba(255, 255, 255, 0) 100%);
    background: -o-linear-gradient(left, rgba(252, 248, 227, 1) 0, rgba(255, 255, 255, 0) 100%);
    background: -ms-linear-gradient(left, rgba(252, 248, 227, 1) 0, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(to right, rgba(252, 248, 227, 1) 0, rgba(255, 255, 255, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='@cui-yellow-050', endColorstr='#00ffffff', GradientType=1)
  }

  .hoverMsg {
    background: @cui-black;
    height: 100%;
    left: 0;
    opacity: .5;
    position: absolute;
    width: 100%;
    top:0;
    z-index: 10000;
  }

  .hoverText {
    color: @cui-white;
    font-size: 5em;
    position: relative;
    text-align: center;
    top: 45%;
    font-weight: 700;
    text-shadow: 1px 1px 1px rgba(0,0,0,.3);
    -webkit-animation-name: bounceInDown;
    animation-name: bounceInDown;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
  }

  .snippet-row {
    position: relative;
    display: block;
    height: auto;
    width: 100%;
  }

  .snippet-footer-actions {
    padding-left: 28px;
  }

  .snippet-side-btn {
    color: @cui-blue-gray-100;
    display: inline-block;
    line-height: 27px;
    height: 27px;
    min-height: 27px;
    margin: 0;
    font-size: 13px;
    cursor: pointer;
    .hue-ease-transition(color);
  }

  .snippet-side-btn.disabled {
    cursor: default !important;
    opacity: 0.5;
  }

  .snippet-side-btn:focus {
    color: @cui-blue-gray-100;
  }

  .snippet-side-btn.active {
    color: @hue-primary-color-dark;
  }

  .snippet-side-btn:hover {
    color: @hue-primary-color-dark;
  }

  .snippet-side-single {
    padding: 0 3px;
  }

  .execution-timer {
    color: @cui-gray-500;
  }

  .resultTable th {
    color: @cui-white;
  }

  .dataTables_wrapper .resultTable th {
    color: @cui-gray-800;
  }

  .navbar .editor-nav > li > a {
    max-width: 600px;
  }

  .navbar .editor-nav > li > a, .navbar .editor-nav > li > a:hover {
    color: @cui-gray-700;
    cursor: default;
  }

  .navbar .editor-nav > li.query-name {
    font-weight: bold;
  }

  .editor-nav .editable-click:hover {
    border-bottom: dashed 1px @cui-blue-700;
  }

  .editor-nav .editable-click, .editor-nav a.editable-click {
    border-bottom: 1px solid transparent;
  }

  .editable-empty, .editable-empty:hover {
    color: @cui-gray-700 !important;
  }

  h4.header {
    font-weight: bold;
    color: @cui-gray-600;
    font-size: 14px;
    text-transform: uppercase;
    padding-left: 4px;
    border-bottom: 1px solid @cui-default-border-color;
    padding-bottom: 3px;
  }

  .history-table tbody tr {
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;

    td {
      vertical-align: top;
    }
  }

  .history-table tbody tr:hover {
    border-left: 2px solid @hue-primary-color-light;
    border-right: 2px solid @hue-primary-color-light;
  }

  .history-table tbody tr:hover td, .history-table tbody tr:hover th {
    background-color: @cui-gray-050;
  }

  .history-table tbody tr.highlight {
    background-color: @cui-gray-050;
    border-left: 2px solid @hue-primary-color-light;
    border-right: 2px solid @hue-primary-color-light;
  }

  .history-table .ace-highlight {
    padding: 4px 0;
  }

  .ace-highlight {
    .ace_layer {
      pointer-events: all;
    }
    .ace-hue {
      background-color: transparent !important;
    }
    .ace_invalid {
      display: none;
    }
    .ace_line {
      white-space: normal;
    }
    .ace-highlight-pre {
      white-space: pre !important;
    }
  }

  .history-status {
    width: 20px;
  }

  .history-status .fa-check {
    color: @cui-lime-200;
  }

  .history-status .fa-fighter-jet {
    color: @cui-orange-200;
  }

  .table-results table > thead > tr > td:first-child, .table-results table > tbody > tr > td:first-child {
    background-color: @cui-gray-050;
  }

  #helpModal th:first-child {
    width: 25%;
  }

  #helpModal th:last-child {
    width: 50%;
  }

  #helpModal .tab-content {
    min-height: 310px;
    max-height: 310px;
  }

  .tooltip {
    z-index: 3000 !important;
  }

  .saveResultsModal .overlay {
    background: black;
    opacity: 0.5;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
  }

  .saveResultsModal .loader {
    text-align: center;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
  }

  .saveResultsModal i.fa-spinner, .saveResultsModal img.spinner {
    margin-top: -30px;
    margin-left: -30px;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 101;
  }

  .saveResultsModal i.fa-spinner {
    font-size: 60px;
    color: @cui-gray-300;
  }

  .notebook-name-desc {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
  }

  .notebook-name-input {
    width: 220px;
  }

  pre {
    font-size: 11px;
  }

  .inline-tab-filter {
    border-radius: 5px !important;
    min-height: 17px !important;
    height: 17px !important;
    margin: 0 3px 0 -2px !important;
    padding: 0 18px 0 5px !important;
  }

  .no-horiz-padding a {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .no-horiz-padding.muted a {
   color: @cui-gray-500 !important;
  }

  .no-horiz-padding:not(:first-child) a {
    margin-left: 0 !important;
  }

  .collapse-results {
    right: 20px;
    top: 20px;
  }

  .meta-title {
    line-height: 22px;
  }

  .meta-filter {
    width: 118px;
    margin-bottom: 0;
  }

  .meta-noresults {
    font-style: italic;
  }

  #schedulerEditor .container-fluid, #schedulerEditor .card-heading, #schedulerEditor .card-body {
    padding: 0;
  }

  #schedulerEditor .dataset-input {
    width: 270px;
  }

  #schedulerEditor .form-horizontal .control-label {
    width: 100px;
    text-align: left;
  }

  #schedulerEditor .form-horizontal .controls {
    margin-left: 110px;
  }

  #schedulerEditor .workflow-parameter {
    padding: 10px;
    margin-left: -10px;
    margin-right: -10px;
  }

  #schedulerEditor .workflow-parameter:hover {
    background-color: @cui-gray-050;
  }

  .warning {
    color: @state-warning-text;
  }

  .nav-header-like {
    padding: 6px;
    margin-top: 1px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
    color: @hue-primary-color-dark;
    text-overflow: ellipsis;
    text-shadow: none;
    background-color: @cui-white;
    border-left: 2px solid transparent;
    -webkit-transition: border .218s;
    -moz-transition: border .218s;
    -o-transition: border .218s;
    transition: border .218s;
    text-transform: uppercase;
  }

  .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
    height: 9px !important;
    margin: 0 !important;
    margin-top: 3px !important;
  }

  .mCSB_scrollTools.mCSB_scrollTools_horizontal {
    margin: 0 !important;
  }

  .mCSB_scrollTools.mCSB_scrollTools_vertical .mCSB_dragger .mCSB_dragger_bar {
    width: 8px !important;
    margin-left: 10px !important;
  }

  .alert-info-gradient {
    border: none;
    margin-top: -3px;
    background: -moz-linear-gradient(left, @cui-blue-050 0, rgba(255, 255, 255, 0) 100%);
    background: -webkit-linear-gradient(left, @cui-blue-050 0, rgba(255, 255, 255, 0) 100%);
    background: -o-linear-gradient(left, @cui-blue-050 0, rgba(255, 255, 255, 0) 100%);
    background: -ms-linear-gradient(left, @cui-blue-050 0, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(to right, @cui-blue-050 0, rgba(255, 255, 255, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='@cui-blue-050', endColorstr='#00ffffff', GradientType=1);
  }

  .alert-success-gradient {
    border: none;
    margin-top: -3px;
    background: -moz-linear-gradient(left, @cui-lime-050 0, rgba(255, 255, 255, 0) 100%);
    background: -webkit-linear-gradient(left, @cui-lime-050 0, rgba(255, 255, 255, 0) 100%);
    background: -o-linear-gradient(left, @cui-lime-050 0, rgba(255, 255, 255, 0) 100%);
    background: -ms-linear-gradient(left, @cui-lime-050 0, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(to right, @cui-lime-050 0, rgba(255, 255, 255, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='@cui-lime-050', endColorstr='#00ffffff', GradientType=1);
  }

  .alert-neutral-gradient {
    border: none;
    border-left: 1px solid @cui-blue-050;
    margin-top: -3px;
    background: -moz-linear-gradient(left, @cui-purple-gray-050 0, rgba(255, 255, 255, 0) 100%);
    background: -webkit-linear-gradient(left, @cui-purple-gray-050 0, rgba(255, 255, 255, 0) 100%);
    background: -o-linear-gradient(left, @cui-purple-gray-050 0, rgba(255, 255, 255, 0) 100%);
    background: -ms-linear-gradient(left, @cui-purple-gray-050 0, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(to right, @cui-purple-gray-050 0, rgba(255, 255, 255, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='@cui-purple-gray-050', endColorstr='#00ffffff', GradientType=1);
  }

  .alert-warning {
    background-color: @cui-yellow-050;
    border: 1px solid @cui-orange-200;
    color: @state-warning-text;
  }

  .sql-analyzer-container {
    margin-top: -11px;
    font-size: 15px;
  }

  .sql-analyzer-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 16px;
    font-size: 14px;
    opacity: .8;
    cursor: pointer;
    &.empty {
      width: 1px;
      cursor: default;
    }
    &.idle {
      color: @cui-gray-400;
      cursor: default;
    }
    &:hover {
      opacity: 1;
    }
    &.success {
      color: @cui-green-600;
    }
    &.warning {
      color: @cui-orange-200;
    }
    &.error {
      color: @cui-red-400;
    }
  }

  .active .sql-analyzer-icon {
    opacity: 1;
  }

  .alert-neutral {
    border: none;
    margin-top: -3px;
    background: transparent;
    margin-bottom: 0;
    padding: 0;
    padding-right: 4px;
    display: inline-block;
  }

  .alert-empty {
    border: none;
    margin-bottom: 0;
    background: transparent;
    padding-left: 4px;
  }

  .sql-analyzer-explanation {
    margin-left: 4px;
  }

  .popover {
    z-index: 1030;
  }

  .close-logs-overlay {
    position: absolute;
    top: 2px;
    right: 10px;
    font-size: 20px;
    display: none;
    background-color: @cui-gray-050;
  }

  .snippet-log-container:hover .close-logs-overlay {
    display: block;
  }

  .jobs-overlay {
    background-color: @cui-white;
    opacity: 0.8;
    position: absolute;
    top: 10px;
    right: 20px;

    .progress-job {
      height: 2px;
      margin-bottom: 0;
    }

    li {
      background-color: @cui-white;
      padding: 5px;

      a {
        margin: 6px;
      }
    }

    &:hover {
      opacity: 1;
    }
  }

  // TODO: Switch to the context popover css for the file chooser
  .ace-filechooser {
    border-radius: @hue-panel-border-radius;
    background-color: @cui-white;
    .hue-box-shadow-bottom;
  }

  .ace-filechooser-content .filechooser-tree {
    position: relative;
    margin-right: 10px;
  }

  .ace-filechooser-close {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1000;
  }

  .query-name {
    margin-left: 28px;
  }

  .statement-type-selector > .hue-drop-down-container {
    margin-left: -100px;
  }

  .variables {
    .selectize-control {
      display: inline-block;
      width: 164px;
    }

    .selectize-input {
      line-height: 19px;
    }

    .selectize-input input[type="text"] {
      height: 19px;
    }

    .input-prepend {
      line-height: 0;
    }

    input:not(:focus)[value=""] {
      border-color: @cui-orange-400;
    }

    input[type="checkbox"] {
      margin: 12px 0 0 10px;
    }

    div.selectize-input {
      padding: 5px 23px 6px 8px;
      text-overflow: ellipsis;
    }
  }

  .nav-tabs-editor {
    .visible-on-hover {
      opacity: 0;
      .hue-ease-transition(opacity);
    }
    li:hover .visible-on-hover {
       opacity: 1;
    }
  }
}
